mps kur hive
# after install
$HIVE_HOME/bin/hive_postgre_init.sh
$HADOOP_HOME/bin/hadoop fs -mkdir -p /usr/hive/warehouse
$HADOOP_HOME/bin/hadoop fs -chmod 777 /tmp
$HIVE_HOME/bin/init-hive-dfs.sh

# spark as execution engine
# 1-yarn mode

# hive-site.xml
set spark.master=yarn 
<property>
  <name>spark.yarn.jars</name>
  <value>hdfs://localhost:9000/spark-jars/*</value>
</property>

# 


# 2-remote mode
$SPARK_HOME/bin/copy_jars2hive.sh
# in beeline
set spark.master=spark://milistgn:7077;

# or set this on hive-site.xml
set spark.master=spark://milistgn:7077;
set spark.eventLog.enabled=true;
set spark.eventLog.dir=<Spark event log folder (must exist)>
set spark.executor.memory=512m;             
set spark.serializer=org.apache.spark.serializer.KryoSerializer;

# beeline için özelleştirilmiş milis-custom.conf kullanılabilir
beeline -i conf/milis-custom.conf ...
